home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Cream of the Crop 3
/
Cream of the Crop 3.iso
/
clipper
/
ks94an.zip
/
__LPRINT.HDR
< prev
next >
Wrap
Text File
|
1994-04-25
|
2KB
|
68 lines
/******************************************************************************
The Klipper Library, for CA-Clipper 5.x
Copyright (c), 1994, Wallace Information Systems Engineering
FUNCTION:
_LPrint( cPtrData, lCrLf ) --> NIL
PARAMETERS:
cPtrData : Character data to print on printer
lCrLf : Logical TRUE = issue CRLF pair after data (DEFAULT)
FALSE = append data to printer current line
SHORT:
Print text directly to the printer.
DESCRIPTION:
_LPrint() writes the contents of cPtrData to the printer regardless of
current printer settings, and restores the printer settings to the state they
were in before the call.
lNoCrLf controls whether or not to append a CRLF pair after the data has been
printed. If TRUE, the effect is QOUT()/?, if FALSE, QQOUT()/??.
NOTE:
EXAMPLE:
SET PRINT ON
SET DEVICE TO PRINT
SET CONSOLE OFF
_LPrint(chr(27)+'E')
Result: ESC-E is written to the printer and the status of SET PRINT,
SET DEVICE, and SET CONSOLE remain the same when the function returns.
SET PRINT OFF
SET DEVICE TO SCREEN
SET CONSOLE ON
_LPrint(chr(27)+'E')
Result: Same as above. String is written to printer regardless of current
SET PRINT, DEVICE and CONSOLE settings. Original Settings are restored
after use.
#define LP_APPEND .F.
_LPrint('ABC')
_LPrint('DEF')
Result (on printer):
ABC
DEF
_LPrint('ABC')
_LPrint('DEF',LP_APPEND)
Result (on printer): ABCDEF
******************************************************************************/